<html>
<head><meta charset="utf-8"><title>rustc compilation from stdin · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20compilation.20from.20stdin.html">rustc compilation from stdin</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="242055753"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20compilation%20from%20stdin/near/242055753" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> HTGAzureX1212. <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20compilation.20from.20stdin.html#242055753">(Jun 09 2021 at 12:18)</a>:</h4>
<p>I would like to ask - does <code>rustc</code> create temporary files if I directly pass Rust code via stdin on Windows? I tried it and I cannot seem to see <code>rustc</code> creating any temporary files - I even searched through the <code>Temp</code> folders I know on Windows. Thanks!</p>



<a name="242057544"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20compilation%20from%20stdin/near/242057544" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> The 8472 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20compilation.20from.20stdin.html#242057544">(Jun 09 2021 at 12:35)</a>:</h4>
<p>you could use sysinternals process monitor to see if it creates any files</p>



<a name="242061333"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20compilation%20from%20stdin/near/242061333" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> HTGAzureX1212. <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20compilation.20from.20stdin.html#242061333">(Jun 09 2021 at 13:06)</a>:</h4>
<p>thanks</p>



<a name="242066678"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20compilation%20from%20stdin/near/242066678" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20compilation.20from.20stdin.html#242066678">(Jun 09 2021 at 13:42)</a>:</h4>
<p>Are you asking if the <code>-</code> causes rustc to pipe the input into a temporary file and then continue compilation from there or if rustc will use temporary files anywhere in the pipeline? If the latter, rustc does use temporary files as part of the normal compilation process such as when it invokes the linker.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>